"""
@File: manage.py
@Project: 约个球
@Author: zhangjian
@Time: 2022.8.22 21:39
@Description: None
"""
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from model import db
from app import create_app

app = create_app()
manager = Manager(app)
# 使用migrate管理app的数据模型变更
migrate = Migrate()
migrate.init_app(app, db)

manager.add_command("db", MigrateCommand)

# 版本问题：flask==1.1.4   MarkupSafe==2.0.1   flask_migrate==2.7.0
if __name__ == "__main__":
    manager.run()
